package cn.imvc.app.repositories;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import cn.imvc.app.entities.Dealer;
import cn.imvc.app.entities.DealerLevel;
import cn.imvc.data.jpa.repository.IJpqlExecutor;
import cn.imvc.data.jpa.repository.ISqlExecutor;

public interface DealerRepository  extends JpaRepository<Dealer, Integer>,IJpqlExecutor<Dealer>,ISqlExecutor<Dealer>{

	List<Dealer> findByDealerLevel(DealerLevel dealerLevel);

	List<Dealer> findByDealerLevelNot(DealerLevel dealerLevel);

	List<Dealer> findByDealerLevelOrDealerLevel(DealerLevel dealerLevel, DealerLevel dealerLevel2);
}
